<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>数组array对象</title>
		<script type="text/javascript">
			/*
			 1:创建方式有三种：
			   1：var arr = new Array(元素列表);
			   2:var arr = new Array(默认长度);
			   3:var arr = [元素列表];
			 * */
			
			var arr = new Array(1,2,3);
			document.write(arr+"<br />")
			arr[10] = 5;
			arr[5] = "abc";
			document.write(arr+"<br />")
			document.write(arr.join("+")+"<br />")
			
		</script>
	</head>
	<body>
	</body>
</html>
